package com.xiaoxiang.text.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.xiaoxiang.text.dao.CommentDao;
import com.xiaoxiang.text.entity.Comment;
import com.xiaoxiang.text.result.CommentResult;
import com.xiaoxiang.text.service.CommentService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * (Comment)表服务实现类
 *
 * @author haha
 * @since 2022-05-01 22:56:30
 */
@Service("commentService")
public class CommentServiceImpl extends ServiceImpl<CommentDao, Comment> implements CommentService {

    @Override
    public List<CommentResult> getByDynamicId(Long id) {
        return this.baseMapper.getByDynamicId(id);
    }
}
